import { ObjCreate } from "../common/ObjCreate";
import { ImagesConst } from "../../resource/ImagesConst";
import { GImageBitmap } from "../../../../com/mui/controls/GImageBitmap";
import { ScaleBitmap } from "../../../../com/mui/display/ScaleBitmap";
import { FlowerBg } from "../common/FlowerBg";
type int = number;
//class ConsumeCountBg
    
    export  class ConsumeCountBg /* flash.display.Sprite */
    {
        constructor()
        {
            
            this.init();
            return;
        }

        /* internal  */init(): void
        {
            this._bg = ObjCreate.createBg(0, 0, 695, 430, this);
            var loc1=ObjCreate.createBitmap(ImagesConst.RechargeFlwBg, 38, 12, this);
            var loc2=ObjCreate.createBitmap(ImagesConst.RechargeFlwBg, 650, 12, this);
            loc2.rotationY = -180;
            this._flwBg3 = ObjCreate.createBitmap(ImagesConst.RechargeFlwBg, 130, 210, this);
            this._flwBg4 = ObjCreate.createBitmap(ImagesConst.RechargeFlwBg, 545, 210, this);
            this._flwBg4.rotationY = -180;
            this._flwBg1 = ObjCreate.createFlowerBg(0, 0, 695, 430, this, false);
            this._flwBg2 = ObjCreate.createFlowerBg(0, 197, 695, 115, this, false);
            this._bmpRechargeWorth = new GImageBitmap(ImagesConst.RechargeWorth, 560, 240);
            this.addChild(this._bmpRechargeWorth);
            this._centerLine1 = ObjCreate.createBg(15, 196, 660, 2, this, ImagesConst.SplitLine);
            this._centerLine2 = ObjCreate.createBg(15, 310, 660, 2, this, ImagesConst.SplitLine);
            this._flwLine1 = ObjCreate.createBg(33, 28, 590, 1, this, ImagesConst.KillUserLine);
            this._flwLine2 = ObjCreate.createBg(125, 225, 405, 1, this, ImagesConst.KillUserLine);
            this._remainBg = ObjCreate.createBg(85, 235, 500, 45, this, ImagesConst.RemainningTimeBg);
            this._timeBg = ObjCreate.createBg(30, 317, 630, 30, this, ImagesConst.FightingStrgBg);
            return;
        }

        public setTitle(arg1: Boolean): void
        {
            this._bmpRechargeDecs.visible = arg1;
            return;
        }

        public setConsumeDesc(arg1: string, arg2: int, arg3: int): void
        {
            this._bmpRechargeDecs = new GImageBitmap(arg1, arg2, arg3);
            addChild(this._bmpRechargeDecs);
            return;
        }

        public setHeight(arg1: int): void
        {
            this._bg.height = arg1;
            this._flwBg1.height = arg1;
            return;
        }

        public setCenterFlw(arg1: int, arg2: int): void
        {
            this._flwBg2.x = arg1;
            this._flwBg2.y = arg2;
            this._bmpRechargeWorth.y = arg2 + 43;
            this._centerLine1.y = (arg2 - 1);
            this._centerLine2.y = arg2 + 113;
            this._remainBg.y = arg2 + 38;
            this._timeBg.y = arg2 + 120;
            this._flwLine2.y = arg2 + 28;
            this._flwBg3.y = arg2 + 13;
            this._flwBg4.y = arg2 + 13;
            return;
        }

        /* internal */ /* var */_bg: ScaleBitmap;

        /* internal */ /* var */_flwBg1: FlowerBg;

        /* internal */ /* var */_flwBg2: FlowerBg;

        /* internal */ /* var */_bmpRechargeDecs: GImageBitmap;

        /* internal */ /* var */_bmpRechargeWorth: GImageBitmap;

        /* internal */ /* var */_centerLine1: ScaleBitmap;

        /* internal */ /* var */_centerLine2: ScaleBitmap;

        /* internal */ /* var */_remainBg: ScaleBitmap;

        /* internal */ /* var */_timeBg: ScaleBitmap;

        /* internal */ /* var */_flwLine1: ScaleBitmap;

        /* internal */ /* var */_flwLine2: ScaleBitmap;

        /* internal */ /* var */_flwBg3: Object /* flash.display.Bitmap */;

        /* internal */ /* var */_flwBg4: Object /* flash.display.Bitmap */;
    }
